<!DOCTYPE html>
<!--suppress ALL-->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta charset="UTF-8">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link th:href="@{/bootstrap/bootstrap.min.css}" rel="stylesheet">
    <link rel="stylesheet" type="text/css" th:href="@{/css/jqTable.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/page/page.css}">
    <style type="text/css">
        .pageTest {
            width: 70%;
            height: 50px;
            margin-top: 0%;
        }

        .activP {
            background-color: #367fa9 !important;
            color: #fff !important;
        }
    </style>
    <style>
        .p20 {
            padding: 20px;
        }

        .mt20 {
            margin-top: 20px;
        }

        .mr10 {
            margin-right: 10px;
        }

        .hide {
            display: none;
        }
    </style>
</head>
<body style="background-color: #f9f9f9;opacity: 0.85;padding-left:3%;padding-right: 3%;-webkit-background-size: 100%;background-repeat: no-repeat;background-size: cover;background-attachment: fixed">
<!--<b><input type="text" disabled th:value="${dc}" style="margin-top: 5%;background-color: transparent;border: 0"/></b>-->
<!--<div class="col-sm-12" style="margin-top: 5%">-->
<!--<div class="col-sm-2">-->
<!--<b><a th:href="'/admin/directionary/editor/zlpost/'+${dbid}">添加资料</a></b>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<div style="margin-bottom: 1%;margin-top: 3%" class="col-sm-12">
    <div class="col-sm-3" style="text-align: left">
        <a class="btn btn-primary" th:href="'/admin/directionary/editor/zlpost/'+${dbid}" data-tag="Off">添加资料</a>
        <a class="btn btn-primary " href="javascript:;" data-tag="Off"
           th:onclick="|javascript:del('/admin/directionary/editor/zlupdate/${dbid}/')|">删除</a>
    </div>
    <div class="col-sm-5" style="text-align: left">
        <div class="input-group">
            <input type="text" class="form-control">
            <span class="input-group-btn">
                        <button class="btn btn-default" type="button">检索</button>
                    </span>
        </div><!-- /input-group -->
    </div><!-- /.col-lg-6 -->
    <div class="col-sm-4" style="text-align: right">
        <!--<a class="btn btn-primary " href="javascript:;" data-tag="Off" onclick="editor()">修改</a>-->
        <a class="btn btn-primary " th:text="'共'+${count}+'条数据'"></a>
    </div>
</div>
<div class="g-selectAll--main">
    <div class="c-table c-table--border">
        <table id="tab02" cellspacing="0" cellpadding="0" border="1" role="c-table">
            <thead>
            <tr>
                <th><b>选择</b>
                </th>
                <th align="center" th:each="colum:${ZlVo.colums}">
                    <b th:if="${dbid} eq '4' and ${columStat.index} eq '0'">
                        <input type="text" disabled value="客户名称" style="background-color: transparent;border: 0"/>
                    </b>
                    <b th:unless="${dbid} eq '4' and ${columStat.index} eq '0'"><input type="text" disabled
                                                                                       th:value="${colum}"
                                                                                       style="background-color: transparent;border: 0"/></b>
                </th>
                <td>
                    <b><input type="text" disabled value="已上传资料" style="background-color: transparent;border: 0"/></b>
                </td>
            </tr>
            </thead>
            <tbody>
            <tr th:each="valueMap:${ZlVo.valuesMap}">
                <b th:each="maps:${valueMap}">
                    <td>
                        <input type="checkbox" class="g-selectAll--input"/>
                        <p hidden="hidden" th:text="'/admin/directionary/editor/zlupdate/'+${dbid}+'/'+${maps.key}">
                        </p>
                    </td>
                    <b th:each="map:${maps.value}">
                        <b th:each="value:${map.key}">
                            <b th:if="${valueStat.index} eq '0'">
                                <td>
                                    <a style="color: dodgerblue" th:href="'/admin/directionary/editor/zlupdate/'+${dbid}+'/'+${maps.key}"
                                       th:text="${value}"></a>
                                </td>
                            </b>
                            <b th:unless="${valueStat.index} eq '0'">
                                <td th:text="${value}">
                                </td>
                            </b>
                        </b>
                        <b th:if="${#lists.isEmpty(map.value)}">
                            <td>暂无:请上传</td>
                            <!--<b th:each="fileVo:${fileVos}">-->
                            <!--<td th:text="${fileVo.fileName}">-->
                            <!--<input type="submit" value="下载"/>-->
                            <!--</td>-->
                            <!--</b>-->
                        </b>
                        <b th:unless="${#lists.isEmpty(map.value)}">
                            <td>
                                <form target="_blank" action="/admin/directionary/editor/fileGet" method="post">
                                    <input name="docid" style="width: 1px" hidden="" type="text" th:value="${maps.key}">
                                    <input name="dba" style="width: 1px" hidden="" type="text" th:value="${dba}">
                                    <button style="background-color: transparent">下载后查看</button>
                                </form>
                            </td>
                            <!--<td th:text="${map.value}">-->
                            <!--</td>-->
                        </b>
                    </b>
                </b>
            </tr>
            </tbody>
        </table>
    </div>
    <br>
</div>
</div>
</div>
<div th:unless="${count} eq '0'">
    <ul class="pager">
        <b th:if="${page} gt '1'">
            <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/'+${prePage}+'/'+${pageSize}"><<</a></li>
        </b>
        <b th:unless="${page} gt '1'">
            <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/'+${page}+'/'+${pageSize}"><<</a></li>
        </b>
        <b th:if="${pageCount}>'5'">
            <b th:if="${diffValue}>='5'">
                <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/'+${page}+'/'+${pageSize}" th:text="${page}"></a></li>
                <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/'+${page+1}+'/'+${pageSize}" th:text="${page+1}"></a></li>
                <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/'+${page+2}+'/'+${pageSize}" th:text="${page+2}"></a></li>
                <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/'+${page+3}+'/'+${pageSize}" th:text="${page+3}"></a></li>
                <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/'+${page+4}+'/'+${pageSize}" th:text="${page+4}"></a></li>
                <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/'+${page+5}+'/'+${pageSize}">>></a></li>
            </b>
            <b th:unless="${diffValue}>='5'">
                <b th:each="p:${#numbers.sequence(0,diffValue)}">
                    <b th:if="${page+p} le ${pageCount}">
                        <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/'+${page+p}+'/'+${pageSize}" th:text="${page+p}"></a>
                        </li>
                    </b>
                </b>
                <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/'+${page+diffValue}+'/'+${pageSize}">>></a></li>
            </b>
        </b>
        <b th:unless="${pageCount}>'5'">
            <b th:each="p:${#numbers.sequence(0,pageCount)}">
                <b th:if="${page+p} le ${pageCount}">
                    <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/'+${page+p}+'/'+${pageSize}" th:text="${page+p}"></a>
                    </li>
                </b>
            </b>
            <b th:unless="${pageCount}=='0'">
                <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/'+${pageCount}+'/'+${pageSize}">>></a></li>
            </b>
            <b th:if="${pageCount}=='0'">
                <li><a th:href="'/admin/directionary/editor/zlget/'+${dbid}+'/1/'+${pageSize}">>></a></li>
            </b>
        </b>
    </ul>
</div>
<script th:src="@{/js/jquery-1.11.3.min.js}"></script>
<script type="text/javascript" th:src="@{/page/page.js}"></script>

<!--开源模版引擎： art-template@4.12.2 for browser | https://github.com/aui/art-template  -->
<script th:src="@{/js/plugins/artTemplate.js}"></script>
<!--另一个插件，消息提示插件  -->
<script th:src="@{/js/plugins/message.js}"></script>
<!-- 必要插件：固定列滚动需要用到，鼠标滚动兼容多浏览器 -->
<script th:src="@{/js/jquery.mousewheel.min.js}"></script>
<!-- 总引入  -->
<script th:src="@{/js/zipJs/jqTable.all.min.js}"></script>

<!-- 也可分开引入  -->
<!-- <script src="pdfjs/jqTable.all.pdfjs"></script> -->
<!-- <script src="pdfjs/jqTablePlugins.pdfjs"></script>
<script src="pdfjs/jqTable.pdfjs"></script> -->
<!-- 临时用的json -->
<script th:src="@{/js/json.js}"></script>
<script type="text/javascript">
    function del(sp) {
        if ($("input[type='checkbox']:checked").length > 0) {
            var str = $("input[type='checkbox']:checked").next().text();
            $.post("/admin/directionary/editor/zldelete", {
                str: str,
                sp: sp
            }, function () {
                alert("删除成功")
                window.location.reload()
            });
        }
        if ($("input[type='checkbox']:checked").length == 0) {
            alert("请先选择")
        }
    };
    // function editor() {
    //     if ($("input[type='checkbox']:checked").length>1){
    //         alert("一次只能选择一个")
    //     }if ($("input[type='checkbox']:checked").length<1) {
    //         alert("请先选择")
    //     }else if ($("input[type='checkbox']:checked").length==1) {
    //         var str=$("input[type='checkbox']:checked").next().text();
    //         window.location.replace(str)
    //     }
    // }
</script>
</body>
</html>
